package com.woniu.sharepark.propertysystem.dao;

import com.woniu.sharepark.propertysystem.dto.OrderDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface OrderDAO {
    /**
     * 根据登录Id查询对应小区的订单
     * @author zy
     * @date 2019/6/11 15:24
     */
    List<OrderDTO> queryOrder(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize, @Param("lId") Integer lId);

    /**
     * 查询所有的订单信息
     * @param currentPage 当前页
     * @param pageSize 每页数量
     * @param orderDTO 订单对象
     * @return
     */
    List<OrderDTO> queryOrderAndUser(@Param("currentPage")Integer currentPage,@Param("pageSize")Integer pageSize,@Param("orderDTO")OrderDTO orderDTO);
}
